<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html 
      xmlns:f="http://java.sun.com/jsf/core" 
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:ui="http://java.sun.com/jsf/facelets" >
<f:metadata>
	<f:viewParam name="dis_donneur" value="#{afficheDonneur.displayDonneur}"/>
    <f:event type="preRenderView" listener="#{afficheDonneur.chargeDonneur}"/>	
</f:metadata>

<h:head></h:head>
	  
<ui:composition template="contenu.xhtml"><ui:define name="droite">
<h:outputText value="#{msg['afficheDonneur.titreEntete']}"/><br/><br/>
<h:form>
<table border="1" cellspacing="0" cellpadding="2">
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelNumeroHematie']}"/></th>
    <td>
      <h:inputText id="numeroHematie"
      	             required="true"
      	             value="#{afficheDonneur.numeroHematie}"
      	             validator="#{afficheDonneur.verificationChampVide}"/>
    </td>
    <td><h:message for="numeroHematie"/></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelNumeroDonneur']}"/></th>
    <td>
      <h:inputText id="numeroDonneur"
      	             required="true"
      	             value="#{afficheDonneur.numeroDonneur}"
      	             validator="#{afficheDonneur.verificationChampVide}"/>
    </td>
    <td><h:message for="numeroDonneur"/></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelNomDonneur']}"/></th>
    <td>
      <h:inputText id="nomDonneur"
      	             required="true"
      	             value="#{afficheDonneur.nomDonneur}"
      	             validator="#{afficheDonneur.verificationChampVide}"/>
    </td>
    <td><h:message for="nomDonneur"/></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelPrenom']}"/></th>
    <td>
      <h:inputText id="prenom"
      	             required="true"
      	             value="#{afficheDonneur.prenom}"
      	             validator="#{afficheDonneur.verificationChampVide}"/>
    </td>
    <td><h:message for="prenom"/></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelDateNais']}"/></th>
    <td>
      <h:inputText id="dateNais"
      	             required="true"
      	             value="#{afficheDonneur.dateNais}"
      	             validator="#{afficheDonneur.verificationChampVide}"/>
    </td>
    <td><h:message for="dateNais"/></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelCivilite']}"/></th>
    <td>
      <h:selectOneMenu id="civilite" value="#{afficheDonneur.civilite}">
        <f:selectItem itemValue="1" itemLabel="#{msg['donneur.civiliteMme']}"/>
        <f:selectItem itemValue="2" itemLabel="#{msg['donneur.civiliteMlle']}"/>
        <f:selectItem itemValue="3" itemLabel="#{msg['donneur.civiliteM']}"/>
      </h:selectOneMenu>       
    </td>
    <td><h:message for="civilite"/></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelAdresseLigne1']}"/></th>
    <td>
      <h:inputText id="adresseLigne1D"
      	             value="#{afficheDonneur.adresseLigne1}"/>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelAdresseLigne2']}"/></th>
    <td>
      <h:inputText id="adresseLigne2D"
      	             value="#{afficheDonneur.adresseLigne2}"/>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelCodePostal']}"/></th>
    <td>
      <h:inputText id="codePostalD"
      	             required="true"
      	             value="#{afficheDonneur.codePostal}"
      	             validator="#{afficheDonneur.verificationChampVide}"/>
    </td>
    <td><h:message for="codePostalD"/></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelVille']}"/></th>
    <td>
      <h:inputText id="villeD"
      	             required="true"
      	             value="#{afficheDonneur.ville}"
      	             validator="#{afficheDonneur.verificationChampVide}"/>
    </td>
    <td><h:message for="villeD"/></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelNumDomicile']}"/></th>
    <td>
      <h:inputText id="numDomicile"
      	             value="#{afficheDonneur.numDomicile}"/>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelNumTravail']}"/></th>
    <td>
      <h:inputText id="numTravail"
      	             value="#{afficheDonneur.numTravail}"/>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelNumPortable']}"/></th>
    <td>
      <h:inputText id="numPortable"
      	             value="#{afficheDonneur.numPortable}"/>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelEmail']}"/></th>
    <td>
      <h:inputText id="email"
      	             value="#{afficheDonneur.email}"/>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelCentrePrefere']}"/></th>
    <td>
      <h:inputText id="centrePrefere"
      	             value="#{afficheDonneur.monCentre()}"/>
    </td>
    <td><h:message for="centrePrefere"/></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelGroupe']}"/></th>
    <td>
       <h:selectOneRadio value="#{afficheDonneur.groupe}">
         <f:selectItem itemValue="1" itemLabel="O&nbsp;&nbsp;&nbsp;"/>
         <f:selectItem itemValue="2" itemLabel="A&nbsp;&nbsp;&nbsp;"/>
         <f:selectItem itemValue="3" itemLabel="B&nbsp;&nbsp;&nbsp;"/>
         <f:selectItem itemValue="4" itemLabel="AB&nbsp;&nbsp;&nbsp;"/>
       </h:selectOneRadio>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelRhesus']}"/></th>
    <td>
      <table align="center">
        <tr>
          <td><h:outputText value="D"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.d_up}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="C"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.c_up}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="c"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.c_down}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="E"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.e_up}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="e"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.e_down}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="Cw"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.cw}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
      </table>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelKell']}"/></th>
    <td>
      <table align="center">
        <tr>
          <td><h:outputText value="K"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.k_up}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="k"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.k_down}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="Kpa"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.kpa}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="Kpb"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.kpb}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
      </table>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelDuffy']}"/></th>
    <td>
      <table align="center">
        <tr>
          <td><h:outputText value="Fya"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.fya}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="Fyb"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.fyb}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
      </table>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelKidd']}"/></th>
    <td>
      <table align="center">
        <tr>
          <td><h:outputText value="Jka"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.jka}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="Jkb"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.jkb}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
      </table>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelLewis']}"/></th>
    <td>
      <table align="center">
        <tr>
          <td><h:outputText value="Lea"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.lea}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="Leb"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.leb}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
      </table>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelMns']}"/></th>
    <td>
      <table align="center">
        <tr>
          <td><h:outputText value="M"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.m_up}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="N"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.n_up}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="S"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.s_up}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="s"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.s_down}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
      </table>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelP']}"/></th>
    <td>
      <table align="center">
        <tr>
          <td><h:outputText value="P1"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.p1}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
      </table>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelLutheran']}"/></th>
    <td>
      <table align="center">
        <tr>
          <td><h:outputText value="Lua"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.lua}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="Lub"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{afficheDonneur.lub}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
      </table>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelFreqDons']}"/></th>
    <td>
      <h:inputText id="freqDons"
      	             value="#{afficheDonneur.freqDons}"/>
    </td>
    <td></td>
  </tr>
</table>
</h:form>
</ui:define></ui:composition>
</html>